﻿<%@ Page Title="links" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="lcmyjobs.Web.links.List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/mybasic.js" type="text/javascript"></script> 
    <link href="../../css/AdminFrame.css" rel="stylesheet" type="text/css" />  

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <div class="rightCenter">
        <div class="rightBack">
           <div class="rightContentTop">
                <ul>
                    <li >
                        <a href="Add.aspx" >增加底部链接</a>
                    </li>
                    <li class="cur">
                        <a href="List.aspx" >底部链接管理</a>
                    </li>
                    <li>
                        <a  href="#">底部链接更改</a>
                    </li>
                </ul>
           </div>
           <div class="rightContentMiddle">
<!--Title -->

            <!--Title end -->

            <!--Add  -->

            <!--Add end -->

            <!--Search -->

            <!--Search end-->
            <br />
            <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="98%" 
                     OnPageIndexChanging ="gridView_PageIndexChanging"
                     DataKeyNames="lin" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="False"  RowStyle-HorizontalAlign="Center" 
                   OnRowCreated="gridView_OnRowCreated" EnableModelValidation="True" CssClass="grid" 
                    GridLines="None">
                    <Columns>
                    <asp:TemplateField  HeaderText="文本" 
                            SortExpression="ltext"    >
                     <HeaderTemplate>
                        
                         <input id="Checkbox1" type="checkbox" onclick="checkall(this)" />
                         文本
                    </HeaderTemplate>
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ltext") %>'></asp:TextBox>
                        </EditItemTemplate>
                                <ItemTemplate>
                                    
                                    <asp:CheckBox ID="DeleteThis" runat="server" />
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("ltext") %>'></asp:Label>
                                    
                                </ItemTemplate>

                       <HeaderStyle HorizontalAlign="Left" CssClass="tdleftmargin"/>
                            <ItemStyle  CssClass="tdleftmargin" HorizontalAlign="Left" />
                            </asp:TemplateField> 
                            
		<asp:BoundField DataField="llink" HeaderText="链接地址" SortExpression="llink" 
                            ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="rank" HeaderText="位置数" SortExpression="rank" 
                            ItemStyle-HorizontalAlign="Center"  >
                            
                            
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                            
                            
                            <asp:HyperLinkField HeaderText="编辑" ControlStyle-Width="50" 
                            DataNavigateUrlFields="lin" DataNavigateUrlFormatString="Modify.aspx?id={0}"
                                Text="编辑"  >
<ControlStyle Width="50px"></ControlStyle>
                        </asp:HyperLinkField>
                            <asp:TemplateField ControlStyle-Width="50" HeaderText="删除"   >
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                         OnClientClick= "return confirm('确认要删除吗？')" Text="删除"></asp:LinkButton>
                                </ItemTemplate>

<ControlStyle Width="50px"></ControlStyle>
                            </asp:TemplateField>
                        </Columns>
                    <PagerStyle Font-Size="12pt" HorizontalAlign="Center" />

<RowStyle HorizontalAlign="Center"></RowStyle>
                </asp:GridView>
               <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
                <tr>
                    <td style="width: 1px;">                        
                    </td>
                    <td  align="center">
                       <div style=" margin:0 auto; width:150px;"> <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" 
                           OnClientClick= "return confirm('确认要删除吗？')" CssClass="bgbtn" style=" margin:0 auto; margin-top:10px; margin-bottom:10px;" />           
                            </div>            
                    </td>
                </tr>
            </table>
            </div>
            </div></div>
</asp:Content>
<%--<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceCheckright" runat="server">
</asp:Content>--%>
